#!/bin/bash

# This script is based on  kdelibs coding style script defined in http://techbase.kde.org/Policies/Kdelibs_Coding_Style
# 
# requirements: astyle, awk and svn 

astyle --indent=spaces=4 --brackets=linux \
      --indent-labels --pad=oper --unpad=paren \
      --one-line=keep-statements --convert-tabs \
      --indent-preprocessor \
      $(svn status | awk '(/^M/ || /^A/) && (/\.h\>/ || /\.c\>/ || /\.cpp\>/) {print $2}')
